package com.cloudfun.campusshare.service;

import com.cloudfun.campusshare.common.model.dto.DeviceModeSetCreateDTO;
import com.cloudfun.campusshare.common.model.dto.DeviceModeSetModifyDTO;
import com.cloudfun.campusshare.common.model.dto.DeviceModeSetSearchDTO;
import com.cloudfun.campusshare.common.model.vo.DeviceModeSetDetailVO;
import com.cloudfun.campusshare.common.model.vo.DeviceModeSetListVO;
import com.cloudfun.campusshare.common.model.vo.DeviceModeSetSimpleVO;
import com.cloudfun.campusshare.common.response.PageResult;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Huqin on 2020/5/11
 */
public interface DeviceModeSetService {

    /**
     * 创建
     *
     * @param createDTO
     */
    void create(DeviceModeSetCreateDTO createDTO);

    /**
     * 修改
     *
     * @param modifyDTO
     */
    void modify(DeviceModeSetModifyDTO modifyDTO);

    /**
     * 搜索
     *
     * @param pageable
     * @param searchDTO
     * @return
     */
    PageResult<DeviceModeSetListVO> search(Pageable pageable, DeviceModeSetSearchDTO searchDTO);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    DeviceModeSetDetailVO detail(String id);

    /**
     * 删除
     *
     * @param id
     */
    void delete(String id);

    /**
     * 简单列表
     *
     * @param searchDTO
     * @return
     */
    List<DeviceModeSetSimpleVO> simpleList(DeviceModeSetSearchDTO searchDTO);
}
